var globalContext;
var isGlobalContextOpen = false;

globalContextWS.onopen(() => {
    // isGlobalContextOpen = true;
});

globalContextWS.onmessage(ctx => {
    isGlobalContextOpen = true;
    // setSSItem('GlobalContext', ctx);
    globalContext = JSON.parse(ctx);
});